package com.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * Created with IntelliJ IDEA.
 * User: x
 * Date: 2012.09.26.
 * Time: 17:12
 * To change this template use File | Settings | File Templates.
 */


@Entity
@Table(name = "USERS")
public class UserEntity implements Serializable {

    @Id
    @Column(name="ID")
    private int ID;

    @Column(name="USERNAME")
    private String userName;

    @Column(name="PASSWORD")
    private String password;

    @Column(name="EMAIL")
    private String email;

    @Column(name="CHECKBOX")
    private int checkbox;

    public UserEntity(){
    }

    public String getUserName() {
        return userName;
    }

    public String getPassword() {
        return password;
    }

    public String getEmail() {
        return email;
    }

    public int getCheckbox() {
        return checkbox;
    }

    public void setCheckbox(int checkbox) {
        this.checkbox = checkbox;
    }

    public UserEntity(int ID, String userName, String password, String email, int checkbox) {
        this.ID = ID;
        this.userName = userName;
        this.password = password;
        this.email = email;
        this.checkbox = checkbox;
    }
}
